/* pages/edit/edit.wxss */
.container {
  width: 100vw;
  height: auto;
  min-height: 100vh;
  background-image: url('https://hand-in-hand-static.oss-rg-china-mainland.aliyuncs.com/personal/background-image.png');
  background-size: contain;
  background-position: 0 0;
  background-repeat: no-repeat;
  box-sizing: border-box;
  padding: 0 32rpx 176rpx;
  background-color: #f6f6f6;
  .navigation-bar {
    width: 100%;
    height: 96rpx;
    display: flex;
    justify-content: flex-start;
    .icon {
      width: 48rpx;
      height: 48rpx;
    }
  }

  
  .grid-col-2 {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .grid-col-3 {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .grid-col-4 {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .content {
    .main-title {
      position: relative;
      color: #222;
      font-size: 48rpx;
      font-weight: 500;
      z-index: 100;
      &::before {
        z-index: 10;
        position: absolute;
        bottom: 0;
        left: 0;
        content: "";
        display: block;
        background-color: rgba(88, 218, 115, 0.65);
        width: 96px;
        height: 6px;
      }
    }

    .sub-title {
      margin-top: 10rpx;
      font-size: 24rpx;
      color: #666666;
    }

    .panel {
      width: 100%;
      height: auto;
      border-radius: 32rpx;
      background-color: #ffffff;
      box-sizing: border-box;
      padding: 32rpx;
      margin: 24rpx 0;

      .avatar-area {
        width: 100%;
        height: 232rpx;
        display: flex;
        justify-content: center;
        align-items: center;

        .avatar-wrapper {
          position: relative;
          width: 160rpx;
          height: 160rpx;
          .avatar {
            width: 100%;
            height: 100%;
            border-radius: 50%;
          }
          .small-icon {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 48rpx;
            height: 48rpx;
          }
        }
      }

      // 不换行的设置项
      .inline-setting-item {
        display: flex;
        width: 100%;
        height: 112rpx;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 -1rpx 0 0 #f5f5f5 inset; 
        .title {  
          font-size: 28rpx;
          color: #222;
          font-weight: 600;
        }

        .value-area {
          display: flex;
          align-items: center;
          .placeholder {
            color: #aaaaaa;
            font-size: 28rpx;
            text.has-value {
              color: #333333;
            }
            .icon-arrow-right {
              width: 32rpx;
              height: 32rpx;
            }
          }
        }

        .radio-group {
          display: flex;
          flex-wrap: nowrap;
          gap: 12rpx;

          .radio-button {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 56rpx;
            color: #383b40;
            font-size: 28rpx;
            padding: 0 26rpx;
            border-radius: 28rpx;
            background-color: #fff;
            border: 1px solid #eee;
            &.active {
              border-color: #40c05a;
              color: #40c05a;
            }
          }
        }

      }

      // 换行的设置项
      .no-inline-setting-item {
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
        box-shadow: 0 -1rpx 0 0 #f5f5f5 inset;
        box-sizing: border-box;
        padding: 24rpx 0;
        gap: 16rpx;
        .title {  
          font-size: 28rpx;
          color: #222;
          font-weight: 600;
        }
        .value-area {
          width: 100%;
          font-size: 28rpx;
        }

        .radio-group {
          // width: 100%;
          gap: 12rpx;
          // box-sizing: border-box;
          .radio-button {
            display: flex;
            justify-content: center;
            align-items: center;
            white-space: nowrap;
            // width: 100%;
            height: 56rpx;
            font-size: 28rpx;
            flex-grow: 0;
            flex-shrink: 0;
            box-sizing: border-box;
            // padding: 0 46rpx;
            border: 2rpx solid #eee;
            border-radius: 28rpx;
            flex-grow: 0;
            &.active {
              border-color: #40c05a;
              color: #40c05a;
            }
          }
        }
      }
    }
  }
}

.bottom-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 136rpx;
  background-color: #fff;
  box-sizing: border-box;
  padding: 0 76rpx;
  .save-button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32rpx;
    width: 100%;
    height: 88rpx;
    background-color: #58da73;
    color: #fff;
    border-radius: 48rpx;
  }
}


